package com.example.teatea.project;

import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;

public class Good {
    private SimpleIntegerProperty gId = new SimpleIntegerProperty();
    private SimpleStringProperty gName = new SimpleStringProperty();
    private SimpleFloatProperty gPrice = new SimpleFloatProperty();
    private SimpleIntegerProperty gNumber = new SimpleIntegerProperty();
    private SimpleStringProperty gType = new SimpleStringProperty();
    private SimpleStringProperty gImage = new SimpleStringProperty();

    public Good() {
    }

    public Good(int gId, String gName, float gPrice, int gNumber, String gType,String gImage) {
        this.setgId(gId);
        this.setgName(gName);
        this.setgPrice(gPrice);
        this.setgNumber(gNumber);
        this.setgType(gType);
        this.setgImage(gImage);
    }

    public Good(String gName, float gPrice, int gNumber, String gType,String gImage) {
        this.setgName(gName);
        this.setgPrice(gPrice);
        this.setgNumber(gNumber);
        this.setgType(gType);
        this.setgImage(gImage);
    }

    public String getgImage() {
        return gImage.get();
    }

    public SimpleStringProperty gImageProperty() {
        return gImage;
    }

    public void setgImage(String gImage) {
        this.gImage.set(gImage);
    }

    public int getgId() {
        return gId.get();
    }

    public SimpleIntegerProperty gIdProperty() {
        return gId;
    }

    public void setgId(int gId) {
        this.gId.set(gId);
    }

    public String getgName() {
        return gName.get();
    }

    public SimpleStringProperty gNameProperty() {
        return gName;
    }

    public void setgName(String gName) {
        this.gName.set(gName);
    }

    public float getgPrice() {
        return gPrice.get();
    }

    public SimpleFloatProperty gPriceProperty() {
        return gPrice;
    }

    public void setgPrice(float gPrice) {
        this.gPrice.set(gPrice);
    }

    public int getgNumber() {
        return gNumber.get();
    }

    public SimpleIntegerProperty gNumberProperty() {
        return gNumber;
    }

    public void setgNumber(int gNumber) {
        this.gNumber.set(gNumber);
    }

    public String getgType() {
        return gType.get();
    }

    public SimpleStringProperty gTypeProperty() {
        return gType;
    }

    public void setgType(String gType) {
        this.gType.set(gType);
    }
}
